package org.example.gradleadmin.rpc.rest;

import gradle.common.core.response.ServerResponse;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.gradleadmin.rpc.service.SeataTransactionalService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/service/seataTransactional")
public class SeataTransactionalRest {

    @Resource
    private SeataTransactionalService seataTransactionalService;

    @PostMapping("/addUser")
    ServerResponse<Boolean> addUser(){
        seataTransactionalService.addUser();
        return ServerResponse.success(true);
    }




}
